<?php require ("header.php"); ?>
<?php 
	$sql="SELECT dep_name,dep_code FROM deparment ORDER BY dep_name ASC";
	$result = mysql_query($sql);
	if ($ad_check<1){
		header ("Location:../login.php?action=0");
	} 
	if ($ad_check==1) {
		echo "<br><br><br><br><br><b><br><center>You do not have privillage to register lecturers.</center></b>";
		echo "<br><br><br><br><br><b><br><br>";
		echo "<META http-equiv=\"refresh\" content=\"2;URL=admin.php?action=102\">";
	}
	else {
?>
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
}
.style1 {
	font-size: 16px;
	font-weight: bold;
}
.style2 {color: #0099CC}
.style3 {color: #000000}
-->
</style>

	<p>&nbsp;</p>
	<table width="780" border="0" align="center">
	<form method="post" action="engine/subject_reg_engine.php">
 	  <tr bgcolor="#333333">
 	   <td><div align="center" class="style1 style2">SUBJECT REGISTRATION FORM </div></td>
	  </tr>
 	  <tr>
 	    <td>&nbsp;</td>
      </tr>
 	  <tr>
 	    <td><table width="490" border="0" align="center">
		
          <tr>
            <td width="155"><span class="style3">Subject Name </span></td>
            <td width="10"><span class="style3">:</span></td>
            <td width="315"><input name="sub_name" type="text" id="sub_name" size="50"></td>
          </tr>
          <tr>
            <td><span class="style3">Subject Code </span></td>
            <td><span class="style3">:</span></td>
            <td><input name="sub_code" type="text" id="sub_code" size="20" maxlength="5"></td>
          </tr>
          <tr>
            <td><span class="style3">Subject Department </span></td>
            <td><span class="style3">:</span></td>
            <td><span class="style3">
              <select name="sub_department" id="sub_department">
                <option></option>
                <?php while ($row = mysql_fetch_assoc($result)) { ?>
                <option value="<?php echo $row['dep_code']; ?>"><?php echo $row['dep_name']; ?></option>
                <?php } ?>
              </select>
            </span> </td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <p align="center">
          <input type="submit" name="Submit" value="Register"></p></form>
        </td>
      <td height="42"></tr>
	</table>
	<p>&nbsp;</p>
    <p>&nbsp;</p>
<?php } ?>
   
<?php require ("footer.php"); ?>

    
